/* ====================== RESET ====================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --bg:#0b0b0b;
  --bg-1:#0b0b0b;
  --bg-2:#141414;
  --text:#d8d8d8;
  --muted:#a8a8a8;
  --gold:burlywood;
  --gold-weak:#d2b48c33;
}

/* ====================== OSNOVA ====================== */
html, body { height: 100%; }
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--text);
  line-height: 1.5;
}
a{ color: var(--gold); text-decoration: none; }
a:hover{ text-decoration: none; }

/* ====================== O NAMA (MAIN) ====================== */
.about-main{
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.7;
  padding: clamp(20px, 3vw, 44px);
}

/* HERO */
.about-hero{
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.about-hero__text h1{
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4.5vw, 56px);
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.about-hero__text p{
  margin-bottom: 14px;
  color: var(--text);
}

.about-hero__media{
  border: 1px solid var(--gold);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px #00000080;
}
.about-hero__media img{
  width: 100%;
  height: auto;
  display: block;
}
.about-hero__media figcaption{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, #00000066);
}

/* DIVIDER */
.about-divider{
  height: 1px;
  max-width: 1200px;
  margin: clamp(24px, 5vw, 56px) auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .75;
  border-radius: 999px;
}

/* ====================== GALERIJA ====================== */
.about-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 80px auto;
  flex-wrap: wrap;
  max-width: 1400px;
}

.about-gallery__item {
  width: 380px;
  height: 520px;
  border: 2px solid var(--gold);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px #00000080;
  transition: transform .35s ease, border-color .25s ease;
  flex-shrink: 0;
}

.about-gallery__item:hover {
  transform: scale(1.05);
  border-color: var(--gold);
}

.about-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform .3s ease;
}

.about-gallery__item img:hover {
  transform: scale(1.03);
}

/* Animacija na ulazak */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================== LIGHTBOX ====================== */
.img-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  animation: fadeIn .3s ease;
}
.img-modal.is-open{ display: flex; }

.img-modal-content {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid burlywood;
  border-radius: 12px;
  box-shadow: 0 0 20px #000;
  animation: zoomIn .4s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px){
  main{ padding: 44px 16px 64px; }
  .about-hero{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .about-gallery{ grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px){
  .about-gallery{ grid-template-columns: repeat(2, 1fr); }
}

/* ====================== REDUCED MOTION ====================== */
@media (prefers-reduced-motion: reduce){
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

